package com.bristua.mall.user.controller;
import com.bristua.mall.common.bean.PageBean;
import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.QueryUserAddressBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="查询用户收货地址",tags={"查询用户收货地址"})
public class QueryUserAddressController {

    @Autowired
    private QueryUserAddressBiz queryUserAddressBiz;
    @ApiOperation(value="查询用户收货地址")
    @PostMapping(value="/api/user/get/address/{pageNo}/{pageSize}")
    public Result queryUserAddress(@PathVariable(value = "pageNo")int pageNo, @PathVariable(value = "pageSize")int pageSize){
        return HandleResultUtil.querySuccessResult(queryUserAddressBiz.queryUserAddress(pageNo, pageSize));
    }
}
